package com.bona.dubbo.report.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.bona.dubbo.report.IReportHeadDubboSV;
import com.bona.model.report.FormFieldModel;
import com.bona.model.report.FormHeadModel;
import com.bona.model.report.FormTemplateModel;
import com.bona.model.report.ReportHeadModel;
import com.bona.model.report.ReportItemModel;
import com.bona.model.report.ReportParamModel;
import com.bona.service.report.FormFieldService;
import com.bona.service.report.FormHeadService;
import com.bona.service.report.FormTemplateService;
import com.bona.service.report.ReportHeadService;
import com.bona.service.report.ReportItemService;
import com.bona.service.report.ReportParamService;

public class ReportHeadDubboSVImpl implements IReportHeadDubboSV {

	@Autowired
	private ReportHeadService reportHeadService;
	@Autowired
	private FormHeadService formHeadService;
	@Autowired
	private FormFieldService formFieldService;
	@Autowired
	private FormTemplateService formTemplateService;
	@Autowired
	private ReportItemService reportItemService;
	@Autowired
	private ReportParamService reportParamService;
	
	@Override
	public FormHeadModel queryFormHead(FormHeadModel model) {
		return formHeadService.query(model);
	}
	
	@Override
	public void addOrUpdateFormHead(FormHeadModel model) {
		formHeadService.addOrUpdate(model);
	}
	
	@Override
	public void deleteFormHead(FormHeadModel model) {
		formHeadService.delete(model);
	}
	
	@Override
	public Integer queryFormHeadByCount(FormHeadModel model) {
		return formHeadService.queryByCount(model);
	}
	
	@Override
	public List<FormHeadModel> queryFormHeadByPage(FormHeadModel model) {
		return formHeadService.queryByPage(model);
	}
	
	@Override
	public FormHeadModel queryFormField(FormFieldModel model) {
		return formFieldService.query(model);
	}
	
	@Override
	public void addOrUpdateFormField(FormFieldModel model) {
		formFieldService.addOrUpdate(model);
	}
	
	@Override
	public void deleteFormField(FormFieldModel model) {
		formFieldService.delete(model);
	}
	
	@Override
	public Integer queryFormFieldByCount(FormFieldModel model) {
		return formFieldService.queryByCount(model);
	}
	
	@Override
	public List<FormFieldModel> queryFormFieldByPage(FormFieldModel model) {
		return formFieldService.queryByPage(model);
	}
	
	@Override
	public FormHeadModel queryFormTemplate(FormTemplateModel model) {
		return formTemplateService.query(model);
	}
	
	@Override
	public void addOrUpdateFormTemplate(FormTemplateModel model) {
		formTemplateService.addOrUpdate(model);
	}
	
	@Override
	public void deleteFormTemplate(FormTemplateModel model) {
		formTemplateService.delete(model);
	}
	
	@Override
	public Integer queryFormTemplateByCount(FormTemplateModel model) {
		return formTemplateService.queryByCount(model);
	}
	
	@Override
	public List<FormTemplateModel> queryFormTemplateByPage(FormTemplateModel model) {
		return formTemplateService.queryByPage(model);
	}
	
	@Override
	public ReportHeadModel queryReportHead(ReportHeadModel model) {
		return reportHeadService.query(model);
	}
	
	@Override
	public void addOrUpdateReportHead(ReportHeadModel model) {
		reportHeadService.addOrUpdate(model);
	}
	
	@Override
	public void deleteReportHead(ReportHeadModel model) {
		reportHeadService.delete(model);
	}
	
	@Override
	public Integer queryReportHeadByCount(ReportHeadModel model) {
		return reportHeadService.queryByCount(model);
	}
	
	@Override
	public List<ReportHeadModel> queryReportHeadByPage(ReportHeadModel model) {
		return reportHeadService.queryByPage(model);
	}
	
	@Override
	public Integer queryReportItemByCount(ReportItemModel model) {
		return reportItemService.queryByCount(model);
	}
	
	@Override
	public List<ReportItemModel> queryReportItemByPage(ReportItemModel model) {
		return reportItemService.queryByPage(model);
	}
	
	@Override
	public Integer queryReportParamByCount(ReportParamModel model) {
		return reportParamService.queryByCount(model);
	}
	
	@Override
	public List<ReportParamModel> queryReportParamByPage(ReportParamModel model) {
		return reportParamService.queryByPage(model);
	}
}
